#!/usr/bin/env bash

####
#
# 安装 cfssl, cfssl-certinfo , cfssljson 工具
#
#
####
mkdir -p /usr/local/cfssl
cd /usr/local/cfssl/

# cfssl
wget https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
mv cfssl_linux-amd64 cfssl
chmod +x cfssl

# cfssl-certinfo
wget https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
mv cfssl-certinfo_linux-amd64 cfssl-certinfo
chmod +x cfssl-certinfo

# cfssljson
wget https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
mv cfssljson_linux-amd64 cfssljson
chmod +x cfssljson